package com.wb.dbgl.ui;

import android.content.Intent;
import android.widget.RadioGroup;

import com.wb.base.BaseActivity;
import com.wb.base.BaseFragment;
import com.wb.base.BaseTabMainActivity;
import com.wb.dbgl.R;
import com.wb.dbgl.ui.fragment.HomeFragment;
import com.wb.dbgl.ui.fragment.MessageFragment;
import com.wb.dbgl.ui.fragment.MineFragment;
import com.wb.dbgl.ui.fragment.TradeFragment;

import java.util.ArrayList;
import java.util.List;

public class MainActivity extends BaseTabMainActivity {


    public static void startActivity(BaseActivity activity) {
        activity.startActivity(new Intent(activity, MainActivity.class));
    }

    @Override
    protected int getContentView() {
        return R.layout.activity_main;
    }

    @Override
    protected RadioGroup getRadioGroupView() {
        return $(R.id.rgTabs);
    }

    @Override
    protected int getContentViewId() {
        return R.id.flContent;
    }

    @Override
    protected List<BaseFragment> getFragment() {
        List<BaseFragment> fragments = new ArrayList();
        fragments.add(new HomeFragment());
        fragments.add(new TradeFragment());
        fragments.add(new MessageFragment());
        fragments.add(new MineFragment());
        return fragments;
    }

    @Override
    protected void initView() {
        super.initView();
    }

    @Override
    protected void initData() {
        super.initData();

    }

    @Override
    protected void initListener() {
        super.initListener();
    }
}
